//
//  ArqFile.h
//  arq
//
//  Created by xiao wen on 15/1/20.
//  Copyright (c) 2015年 witsi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DataTransmitImp.h"

@interface ArqFile : NSObject{
@private
    void *pCppObj;
}


- (id)initWith:(DataTransmitImp*)dataTransmit;

-(int)FileOpen:(NSString*)filename withMode:(int)mode;

-(int)FileClose:(int)handle;

-(int)FileRead:(int)handle withReadBuf:(NSData**)rbuf withRlen:(int)rlen;

-(int)FileWrite:(int)handle withWriteBuf:(NSData*)wbuf withWlen:(int)wlen;

-(int)FileLseek:(int)handle withOffset:(int)offset withMode:(int)mode;

-(int)FileUnlink:(NSString*)filename;

-(int)FileGetFileSize:(NSString*)filename;

@end

//class ArqKey
//{
//public:
//    int getKey(byte[] keyval, int ms);
//    int getAsciiStr(int x, int y, int minlen, int maxlen,
//                    int dis, int mode, int ms, byte[] keystr);
//    int getTransAmount(int x, int y, int ms, byte[] buf);
//    
//};
